blob: 7d18ba86f0943adca27560fac453ed5ab2e32af9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { get } from '$lib/utils';
const username = 'bob',
network = 'lightning';
export async function GET({ params }) {
let { id } = params;
let huh = await get(`/invoice?uuid=${id}`);
console.log(huh)
let { amount, rate, text } = await get(`/invoice?uuid=${id}`);
return { body: { amount, rate, text } };
}
|